package com.xs.designs.strategy.di.II;

import com.xs.designs.strategy.di.I.PaymentStrategy;
import com.xs.designs.strategy.di.PayEnum;
import org.springframework.stereotype.Service;

@Service
public class WeChatPay implements PaymentStrategy {

    // @Autowired
    // PayMapper payMapper;

    @Override
    public void pay(double amount) {
        System.out.println("使用微信支付 " + amount + " 元");
    }

    @Override
    public PayEnum getHandleStrategy() {
        return PayEnum.WXPAY;
    }
}

